home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsPIProtocolProxyService.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  112 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsPIProtocolProxyService.idl
  3.  */
  4.  
  5. #ifndef __gen_nsPIProtocolProxyService_h__
  6. #define __gen_nsPIProtocolProxyService_h__
  7.  
  8.  
  9. #ifndef __gen_nsIProtocolProxyService_h__
  10. #include "nsIProtocolProxyService.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsPIProtocolProxyService */
  19. #define NS_PIPROTOCOLPROXYSERVICE_IID_STR "d2c7b3eb-7778-468b-ae9b-c106c2afb5d1"
  20.  
  21. #define NS_PIPROTOCOLPROXYSERVICE_IID \
  22.   {0xd2c7b3eb, 0x7778, 0x468b, \
  23.     { 0xae, 0x9b, 0xc1, 0x06, 0xc2, 0xaf, 0xb5, 0xd1 }}
  24.  
  25. /**
  26.  * THIS IS A PRIVATE INTERFACE
  27.  *
  28.  * It exists purely as a hack to support the configureFromPAC method used by
  29.  * the preference panels in the various apps.  Those apps need to be taught to
  30.  * just use the preferences API to "reload" the PAC file.  Then, at that point,
  31.  * we can eliminate this interface completely.
  32.  */
  33. class NS_NO_VTABLE nsPIProtocolProxyService : public nsIProtocolProxyService {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_PIPROTOCOLPROXYSERVICE_IID)
  37.  
  38.   /**
  39.      * This method may be called to re-configure proxy settings given a URI
  40.      * to a new proxy auto config file.  This method may return before the
  41.      * configuration actually takes affect (i.e., the URI may be loaded
  42.      * asynchronously).
  43.      *
  44.      * WARNING: This method is considered harmful since it may cause the PAC
  45.      * preferences to be out of sync with the state of the Protocol Proxy
  46.      * Service.  This method is going to be eliminated in the near future.
  47.      *
  48.      * @param aURI
  49.      *        The location of the PAC file to load.  If this value is empty,
  50.      *        then the PAC configuration will be removed.
  51.      */
  52.   /* void configureFromPAC (in AUTF8String aURI); */
  53.   NS_IMETHOD ConfigureFromPAC(const nsACString & aURI) = 0;
  54.  
  55. };
  56.  
  57. /* Use this macro when declaring classes that implement this interface. */
  58. #define NS_DECL_NSPIPROTOCOLPROXYSERVICE \
  59.   NS_IMETHOD ConfigureFromPAC(const nsACString & aURI); 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  62. #define NS_FORWARD_NSPIPROTOCOLPROXYSERVICE(_to) \
  63.   NS_IMETHOD ConfigureFromPAC(const nsACString & aURI) { return _to ConfigureFromPAC(aURI); } 
  64.  
  65. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  66. #define NS_FORWARD_SAFE_NSPIPROTOCOLPROXYSERVICE(_to) \
  67.   NS_IMETHOD ConfigureFromPAC(const nsACString & aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfigureFromPAC(aURI); } 
  68.  
  69. #if 0
  70. /* Use the code below as a template for the implementation class for this interface. */
  71.  
  72. /* Header file */
  73. class _MYCLASS_ : public nsPIProtocolProxyService
  74. {
  75. public:
  76.   NS_DECL_ISUPPORTS
  77.   NS_DECL_NSPIPROTOCOLPROXYSERVICE
  78.  
  79.   _MYCLASS_();
  80.  
  81. private:
  82.   ~_MYCLASS_();
  83.  
  84. protected:
  85.   /* additional members */
  86. };
  87.  
  88. /* Implementation file */
  89. NS_IMPL_ISUPPORTS1(_MYCLASS_, nsPIProtocolProxyService)
  90.  
  91. _MYCLASS_::_MYCLASS_()
  92. {
  93.   /* member initializers and constructor code */
  94. }
  95.  
  96. _MYCLASS_::~_MYCLASS_()
  97. {
  98.   /* destructor code */
  99. }
  100.  
  101. /* void configureFromPAC (in AUTF8String aURI); */
  102. NS_IMETHODIMP _MYCLASS_::ConfigureFromPAC(const nsACString & aURI)
  103. {
  104.     return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106.  
  107. /* End of implementation class template. */
  108. #endif
  109.  
  110.  
  111. #endif /* __gen_nsPIProtocolProxyService_h__ */
  112.